import $http from 'common/js/http'

export function getBanners(params){
    return $http({
        url: '/banner',
        methods: 'get',
        params
    })
}
export function getRecommends(params){
    return $http({
        url: '/personalized',
        methods: 'get',
        params
    })
}
export function getNewsongs(params){
    return $http({
        url: '/personalized/newsong',
        methods: 'get',
        params
    })
}
export function getRank(params){
    return $http({
        url: '/toplist',
        methods: 'get',
        params
    })
}
export function getRankByType(params){
    return $http({
        url: '/top/list',
        methods: 'get',
        params
    })
}
export function getHotSearch(params){
    return $http({
        url: '/search/hot',
        methods: 'get',
        params
    })
}
export function getSearchResult(params){
    return $http({
        url: '/search',
        methods: 'get',
        params
    })
}
export function getSourceUrl(params){
    return $http({
        url: '/song/url',
        methods: 'get',
        params
    })
}
export function getLyric(params){
    return $http({
        url: '/lyric',
        methods: 'get',
        params
    })
}
export function getSinger(params){
    return $http({
        url: '/top/artists?limit=100',
        methods: 'get',
        params
    })
}
export function getSingerTopSong(params){
    return $http({
        url: '/artist/top/song',
        methods: 'get',
        params
    })
}
export function getSonglistDetail(params){
    return $http({
        url: '/playlist/detail',
        methods: 'get',
        params
    })
}
export function getPlaylistHot(params){
    return $http({
        url: '/playlist/hot',
        methods: 'get',
        params
    })
}